package com.fd.object;

public class Student {
    String name; // 姓名
    double chinese; // 语文成绩
    double math; // 数学成绩

   public void prinTotalScore(){
       System.out.println(name + "的总成绩是：" + (chinese + math));
   }
    public void prinAverageScore(){
        System.out.println(name + "的平均成绩是：" + ((chinese + math) / 2));
    }
}
